package com.example.model;

import java.math.BigDecimal;
import java.util.Date;

public class Coupon {
    private Long couponId;

    private BigDecimal couponPrice;

    private String userId;

    private String orderId;

    private Integer isUsed;

    private Date createTime;

    public Coupon(Long couponId, BigDecimal couponPrice, String userId, String orderId, Integer isUsed, Date createTime) {
        this.couponId = couponId;
        this.couponPrice = couponPrice;
        this.userId = userId;
        this.orderId = orderId;
        this.isUsed = isUsed;
        this.createTime = createTime;
    }

    public Coupon() {
        super();
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}